<?php

/**
get table infos for id
*/
function getIntro($id) {
	$con = new ConnectDB();
	$tbl = " infos";
	$fn = array('content');
	$condetion = array('id_info' => $id);
	return $con -> getvalue($tbl, $fn, $condetion);
}

/**
update table infos
*/
function updateIntro($id, $valuecontent) {
	$con = new ConnectDB();
	
	$tbl = "infos";
	$fn = array('content' => $valuecontent);
	$condition = array('id_info' => $id);
	return $con -> update($tbl, $fn, $condition);
}
?>